package com.cristina.attention.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cristina.attention.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 好友关系
 * @author by Attention
 * @Classname Friend
 * @Date 2021/12/5
 */
@Data
@TableName(value = "im_friend")
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Friend extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @TableField(value = "id")
    private Long id;

    @TableField(value = "origin_id")
    private Long originId;

    @TableField(value = "target_id")
    private Long targetId;

    @ApiModelProperty(value = "添加时间", hidden = true)
    @TableField(value = "apply_time")
    private Long applyTime;

}
